package edu.scau.cxq.gp.service;

import com.github.pagehelper.PageInfo;
import edu.scau.cxq.gp.entity.RecordIn;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.scau.cxq.gp.entity.vo.RecordInVO;

/**
 * <p>
 * 存储入库信息 服务类
 * </p>
 *
 * @author CXQ
 * @since 2022-01-30
 */
public interface IRecordInService extends IService<RecordIn> {

    /**
     * 添加库存记录
     * @param recordIn
     * @return
     */
    boolean beforeInsertRecordIn(RecordIn recordIn);

    /**
     * 条件查找出库记录
     * @param goodsId
     * @param supId
     * @param wareId
     * @return
     */
    PageInfo<RecordInVO> getRecordInVOList(Integer currentPage, Integer size, Long goodsId, Long supId, Long wareId);

    /**
     * 撤销入库记录
     * @param inId
     * @return
     */
    boolean rollback(Long inId);
}
